<template>
	<view class="contact_us f f_column f_align_center">
		<view class="lgoo_me">
			<image class="autoImg" src="/static/logo.png" mode=""></image>
		</view>
		<view class="AppName bold">帮创传媒</view>
		<view class="app_vesion">版本号{{baseUtils.version()}}</view>


		<view class="c_l_item f f_align f_align_center" style="margin-top:64rpx">
			<view class="">我的导师</view>
			<view class="">{{userInfo.inviterEntity.userName}}</view>
		</view>
		<view class="c_l_item f f_align f_align_center">
			<view class="">导师电话</view>
			<view class="ttt" @click="$call(userInfo.inviterEntity.mobile)">{{userInfo.inviterEntity.mobile}}</view>
		</view>
		<view class="c_l_item f f_align f_align_center">
			<view class="">导师微信</view>
			<view class="" @click="$copy('')"></view>
		</view>
		<!-- <view class="c_l_item f f_align f_align_center">
			<view class="">客服邮箱</view>
			<view class="">chaojiyinliu@163.com1</view>
		</view> -->
	</view>
</template>

<script>
	import { baseUtils } from '@/utils/base.js';
	export default {
		data() {
			return {
				baseUtils:baseUtils,
				userInfo:{
					inviterEntity:{
						userName:'-',
						mobile:'-',
						userHeadUrl:'-'
					}
				}
			};
		},
		onShow() {
			this.getUserInfo();
		},
		methods:{
			//获取用户信息哦
			async getUserInfo(){
				const _this = this;
				let res = (await _this.$http('/api/auth/user/getUserInfo','POST',{})).data;
				uni.stopPullDownRefresh();
				console.log(res.data)
				if(res && res.code == '0'){
					let userInfo = res.data;
					_this.userInfo = userInfo;
					uni.setStorageSync('userInfo',userInfo);
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.contact_us{
		width: 100%;
		box-sizing: border-box;
		border-top: solid 1rpx #E6E6E6;
		padding: 100rpx 32rpx 0;
		color: #333;
		font-size: 28rpx;;
		.lgoo_me{
			width: 172rpx;height: 172rpx;
			margin-bottom: 16rpx;
		}
		.AppName{
			font-size: 44rpx;
		}
		.app_vesion{
			color: #9B9B9B;
		}
		.c_l_item{
			width: 100%;
			padding: 24rpx 0;
			border-bottom: solid 1rpx $ych_br_color;
			&:nth-child(1){
				margin-top: 64rpx;
			}
			.ttt{color: $ych_color;}
		}
	}
</style>
